using System.Reflection;
using Microsoft.EntityFrameworkCore;

namespace Crux.Core.EFCore.Test;
/// <summary>
/// TestDbContext
/// </summary>
public class TestDbContext : CruxDbContext
{
    public TestDbContext(DbContextOptions options) : base(options)
    {
    }

    protected override void OnModelCreating(ModelBuilder modelBuilder)
    {
        modelBuilder.ApplyConfigurationsFromAssembly(Assembly.GetExecutingAssembly(), _ => true);
    }
}